import Taro from '@tarojs/taro'
import {Image, Text, View} from '@tarojs/components'
import nocontent from '../../assets/nocontent.svg'
import './index.less'

export default class Empty extends Taro.Component {

  render() {
    const {title='无数据', desc='内容为空'} = this.props;

    return (
      <View className="nocontent">
        <Image src={nocontent}/>
        <Text className="title">{title}</Text>
        <Text className="desc">{desc}~</Text>
      </View>
    )
  }
}
